<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
<title>source\jindo.InlineTextEdit.js - Jindo Component - AjaxUI@NHN</title>
<link rel="stylesheet" type="text/css" href="../assets/prettify/prettify-min.css" media="screen">
<script type="text/javascript">
	var isMobile = (function() {
		var r = window.devicePixelRatio || 1;
		if (/windows phone/i.test(navigator.userAgent)) { r = 2; }
		
		var s = Math.max(screen.width / r, screen.height / r);
		
		var m = s < 1024;
		var href = m ? "api.mobile.css" : "api.css";
		document.write('<link rel="stylesheet" type="text/css" href="../assets/' + href + '" media="screen">');
		
		return m;
	})();
</script>

<script type="text/javascript" src="../assets/jindo.desktop.min.js"></script>
<script type="text/javascript" src="../assets/jindo_component.min.js"></script>
</head>
<body class="api-page">
<div id="wrap" class="api-main"><!-- 2Depth 접기 : lft_fold 추가 -->

	<div id="header">
		<h1><a href="../index.html"><span class="blind">JindoJS</span></a></h1>
		<div class="info">
			<span class="version">version 1.6.0</span>
			<span class="bar">|</span>
			<span class="help"><span class="ic_help"></span><a href="http://devcode.nhncorp.com/projects/jindo-component/issue" target="_blank">버그신고/문의</a></span>
		</div>
		<div class="menu">
			<button type="button" id="toggle_search_btn" class="btn_sch"><span class="blind">검색</span></button>
			<button type="button" id="toggle_list_btn" class="btn_snb btn_snb_on"><span class="blind">메뉴</span></button>
			<!-- [D] 클릭시 btn_sch_on,btn_snb_on 추가 -->
		</div>
	</div>

	<!-- sch_frm -->
	<div class="sch_frm hide_when_small">
		<h2 class="blind">검색</h2>
		<div class="filter">
			<input type="search" id="api-filter" placeholder="검색어를 입력하세요.">
		</div>
		<div id="search-tab" style="display:none;">
			<ul class="tabs">
			<li class="tc-tab">전체</li>
			<li class="tc-tab">키워드</li>
			<li class="tc-tab">클래스</li>
			<li class="tc-tab">메서드</li>
			<li class="tc-tab">프로퍼티</li>
			<li class="tc-tab">이벤트</li>
			</ul>
			<div class="panels">
				<ul id="api-all" class="tc-panel"></ul>
				<ul id="api-keywords" class="tc-panel"></ul>
				<ul id="api-classes" class="tc-panel"></ul>
				<ul id="api-methods" class="tc-panel"></ul>
				<ul id="api-attrs" class="tc-panel"></ul>
				<ul id="api-events" class="tc-panel"></ul>
			</div>

		</div>
	</div>
	<!-- // sch_frm -->

	<!-- container -->
	<div id="container">
		<!-- left-columns -->
		<div id="left-columns" class="sidemenu has_scrollbar">
			<h2 class="blind"><a href="../index.html"><span>APIs</span></a></h2>
<div class="snb depth1 scrollbar hide_when_small">
	<!-- [D] style="width:135px; height:384px; -->
	<div class="scrollbar-box">
		<div class="scrollbar-content">
			<div><ul>
			            <li class="">
			            	<a href="../classes/jindo.Accordion.html" class="">
			                	Accordion
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.AjaxHistory.html" class="">
			                	AjaxHistory
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.BrowseButton.html" class="">
			                	BrowseButton
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Cache.html" class="">
			                	Cache
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Calendar.html" class="">
			                	Calendar
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Canvas.html" class="">
			                	Canvas
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.CheckBox.html" class="">
			                	CheckBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.CircularRolling.html" class="">
			                	CircularRolling
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Clipboard.html" class="">
			                	Clipboard
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Component.html" class="">
			                	Component
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DataBridge.html" class="">
			                	DataBridge
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DatePicker.html" class="">
			                	DatePicker
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DefaultTextValue.html" class="">
			                	DefaultTextValue
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Dialog.html" class="">
			                	Dialog
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DragArea.html" class="">
			                	DragArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DropArea.html" class="">
			                	DropArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DynamicTree.html" class="">
			                	DynamicTree
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Effect.html" class="">
			                	Effect
								
								

							    
						        
						            <span class="flag static" title="static"><span class="blind">static</span></span>
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.FileUploader.html" class="">
			                	FileUploader
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.FloatingLayer.html" class="">
			                	FloatingLayer
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Foggy.html" class="">
			                	Foggy
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Formatter.html" class="">
			                	Formatter
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.HTMLComponent.html" class="">
			                	HTMLComponent
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.InlineTextEdit.html" class="">
			                	InlineTextEdit
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerEffect.html" class="">
			                	LayerEffect
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerManager.html" class="">
			                	LayerManager
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerPosition.html" class="">
			                	LayerPosition
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LazyLoading.html" class="">
			                	LazyLoading
								
								

							    
						        
						            <span class="flag static" title="static"><span class="blind">static</span></span>
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ModalDialog.html" class="">
			                	ModalDialog
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.MouseGesture.html" class="">
			                	MouseGesture
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.MultipleAjaxRequest.html" class="">
			                	MultipleAjaxRequest
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.NumberFormatter.html" class="">
			                	NumberFormatter
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.NumericStepper.html" class="">
			                	NumericStepper
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Pagination.html" class="">
			                	Pagination
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Rolling.html" class="">
			                	Rolling
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RollingChart.html" class="">
			                	RollingChart
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RolloverArea.html" class="">
			                	RolloverArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RolloverClick.html" class="">
			                	RolloverClick
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ScrollBar.html" class="">
			                	ScrollBar
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ScrollBox.html" class="">
			                	ScrollBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.SelectArea.html" class="">
			                	SelectArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.SelectBox.html" class="">
			                	SelectBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Slider.html" class="">
			                	Slider
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.StarRating.html" class="">
			                	StarRating
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.TabControl.html" class="">
			                	TabControl
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.TextRange.html" class="">
			                	TextRange
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Timer.html" class="">
			                	Timer
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Transition.html" class="">
			                	Transition
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Tree.html" class="">
			                	Tree
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.UIComponent.html" class="">
			                	UIComponent
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.UploadQueue.html" class="">
			                	UploadQueue
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.WatchInput.html" class="">
			                	WatchInput
								
								

							    
						        
			            	</a>
			            </li>
			        </ul></div>
		</div>
	</div>
	<div class="scrollbar-v">
		<div class="scrollbar-button-up"></div>
		<div class="scrollbar-track">
			<div class="scrollbar-thumb" style="top: 0px; height: 222px; "></div>
		</div>
		<div class="scrollbar-button-down"></div>
	</div>
</div>


<button type="button" title="펼치기" class="btn_open">바로가기 열기<span class="ic"></span></button>
<button type="button" title="접기" class="btn_close">바로가기 닫기<span class="ic"></span></button>

		</div>
		<!-- // left-columns -->

		<!-- main content -->
		<div id="main">
			<div class="main_fix">
				<div class="content">
	
	<h1 class="blind">source/jindo.InlineTextEdit.js</h1>
	<div class="tc-panel first">
		<dl class="relation">
			<dt>파일명</dt>
			<dd>jindo.InlineTextEdit.js</dd>
			<dt>경로</dt>
			<dd>source/</dd>
		</dl>
		<div id="file" class="file">
		    <pre class="code prettyprint linenums">/**
	@fileOverview&nbsp;문서내의&nbsp;Text&nbsp;노드를&nbsp;Text&nbsp;Input으로&nbsp;변환시켜&nbsp;즉시&nbsp;수정할&nbsp;수&nbsp;있게해주는&nbsp;컴포넌트
	@author&nbsp;senxation
	@version&nbsp;#__VERSION__#
**/

/**
	문서내의&nbsp;Text&nbsp;노드를&nbsp;Text&nbsp;Input으로&nbsp;변환시켜&nbsp;즉시&nbsp;수정할&nbsp;수&nbsp;있게해주는&nbsp;컴포넌트
	
	@class&nbsp;jindo.InlineTextEdit
	@extends&nbsp;jindo.Component
	
	@keyword&nbsp;inline,&nbsp;input,&nbsp;edit,&nbsp;인라인,&nbsp;수정
**/
jindo.InlineTextEdit&nbsp;=&nbsp;jindo.$Class({
	/**&nbsp;@lends&nbsp;jindo.InlineTextEdit.prototype&nbsp;*/
	
	_bIsEditing&nbsp;:&nbsp;false,
	
	/**
		@constructor
		@param&nbsp;{Object}&nbsp;[htOption]&nbsp;옵션
			@param&nbsp;{HTMLElement}&nbsp;[htOption.elInput]&nbsp;수정시&nbsp;표시될&nbsp;Input&nbsp;엘리먼트&nbsp;(또는&nbsp;textarea)&lt;br/&gt;기본&nbsp;값&nbsp;:&nbsp;<code>jindo.$(&amp;#39;&amp;lt;input&amp;nbsp;type=&amp;quot;text&amp;quot;&amp;gt;&amp;#39;</code>)
			@param&nbsp;{Boolean}&nbsp;[htOption.bHandleBlur=true]&nbsp;수정중인&nbsp;Input&nbsp;엘리먼트에서&nbsp;blur되었을&nbsp;때&nbsp;적용(apply())할지&nbsp;여부
			@param&nbsp;{Boolean}&nbsp;[htOption.bHandleKeyDown=true]&nbsp;enter키&nbsp;입력시&nbsp;적용/esc키&nbsp;입력시&nbsp;취소를&nbsp;적용할지&nbsp;여부
		@example
			var&nbsp;oInlineTextEdit&nbsp;=&nbsp;new&nbsp;jindo.InlineTextEdit({
				elInput&nbsp;:&nbsp;jindo.$(&#39;&lt;input&nbsp;type=&quot;text&quot;&gt;&#39;)&nbsp;수정시&nbsp;표시될&nbsp;Input&nbsp;엘리먼트
			}).attach({
				beforeChange&nbsp;:&nbsp;function(oCustomEvent)&nbsp;{
					//수정이&nbsp;성공적으로&nbsp;완료되고&nbsp;수정된&nbsp;값이&nbsp;적용되기&nbsp;전에&nbsp;발생
					//oCustomEvent&nbsp;=&nbsp;{
					//	sText&nbsp;:&nbsp;(String)&nbsp;수정될&nbsp;값,&nbsp;핸들러내에서&nbsp;수정가능
					//	elInput&nbsp;:&nbsp;(HTMLElement)&nbsp;수정을&nbsp;위해&nbsp;표시된&nbsp;Input&nbsp;엘리먼트
					//	elText&nbsp;:&nbsp;(HTMLElement)&nbsp;수정될&nbsp;엘리먼트
					//};
					//oCustomEvent.stop();&nbsp;수행시&nbsp;elText의&nbsp;값이&nbsp;변경되지&nbsp;않고&nbsp;change&nbsp;커스텀&nbsp;이벤트가&nbsp;발생하지&nbsp;않음
				},
				change&nbsp;:&nbsp;function(oCustomEvent)&nbsp;{
					//수정된&nbsp;값이&nbsp;적용된&nbsp;이후에&nbsp;발생
					//oCustomEvent&nbsp;=&nbsp;{
					//	sText&nbsp;:&nbsp;(String)&nbsp;수정된&nbsp;값
					//	elInput&nbsp;:&nbsp;(HTMLElement)&nbsp;수정을&nbsp;위해&nbsp;표시된&nbsp;Input&nbsp;엘리먼트
					//	elText&nbsp;:&nbsp;(HTMLElement)&nbsp;수정된&nbsp;엘리먼트
					//};
				}
			});
	**/
	$init&nbsp;:&nbsp;function(htOption)&nbsp;{
		var&nbsp;htDefaultOption&nbsp;=&nbsp;{
			elInput&nbsp;:&nbsp;jindo.$(&#39;&lt;input&nbsp;type=&quot;text&quot;&gt;&#39;),
			bHandleBlur&nbsp;:&nbsp;true,
			bHandleKeyDown&nbsp;:&nbsp;true
		};
		this.option(htDefaultOption);
		this.option(htOption&nbsp;||&nbsp;{});
		
		this._wfBlur&nbsp;=&nbsp;jindo.$Fn(this._onBlur,&nbsp;this);
		this._wfKeyDown&nbsp;=&nbsp;jindo.$Fn(this._onKeyDown,&nbsp;this);
	},
	
	/**
		수정시&nbsp;보여지는&nbsp;입력컨트롤&nbsp;엘리먼트를&nbsp;리턴한다.
		
		@method&nbsp;getTextInput
		@return&nbsp;{HTMLElement}
	**/
	getTextInput&nbsp;:&nbsp;function()&nbsp;{
		return&nbsp;this._getTextInput().$value();
	},
	
	_getTextInput&nbsp;:&nbsp;function()&nbsp;{
		if&nbsp;(this._welInput&nbsp;&amp;&amp;&nbsp;this._welInput.$value())&nbsp;{
			return&nbsp;this._welInput;
		}&nbsp;else&nbsp;{
			return&nbsp;(this._welInput&nbsp;=&nbsp;jindo.$Element(this.option(&quot;elInput&quot;)));
		}
	},
	
	_resize&nbsp;:&nbsp;function(elFrom,&nbsp;elTo)&nbsp;{
		var&nbsp;wel&nbsp;=&nbsp;jindo.$Element(elFrom);
		var&nbsp;welTo&nbsp;=&nbsp;jindo.$Element(elTo);
		welTo.width(wel.width()).height(wel.height());
	},
	
	/**
		수정중인지&nbsp;여부를&nbsp;가져온다.
		
		@method&nbsp;isEditing
		@return&nbsp;{Boolean}
	**/
	isEditing&nbsp;:&nbsp;function()&nbsp;{
		return&nbsp;this._bIsEditing;
	},
	
	/**
		지정된&nbsp;엘리먼트를&nbsp;수정한다.
		수정&nbsp;이후에&nbsp;입력컨트롤이&nbsp;blur되면&nbsp;수정된&nbsp;값이&nbsp;반영되고,&nbsp;수정중&nbsp;esc키가&nbsp;입력되면&nbsp;수정이&nbsp;취소된다.
		
		@method&nbsp;edit
		@param&nbsp;{HTMLElement}&nbsp;el&nbsp;수정할&nbsp;엘리먼트
		@param&nbsp;{HTMLElement}&nbsp;elGetSizeFrom&nbsp;Text&nbsp;Input의&nbsp;사이즈를&nbsp;지정하기위해&nbsp;사이즈를&nbsp;구할&nbsp;엘리먼트&nbsp;(생략시&nbsp;기본값은&nbsp;el)
		@return&nbsp;{this}&nbsp;
		@example
			oInlineTextEdit.edit(jindo.$(&quot;text&quot;));
	**/
	edit&nbsp;:&nbsp;function(el,&nbsp;elGetSizeFrom)&nbsp;{
		var&nbsp;wel&nbsp;=&nbsp;jindo.$Element(el),
			welInput&nbsp;=&nbsp;this._getTextInput(),
			elInput&nbsp;=&nbsp;welInput.$value();
		
		this._welHidden&nbsp;=&nbsp;wel;
		wel.after(elInput);
		this._resize(elGetSizeFrom&nbsp;||&nbsp;el,&nbsp;elInput);
		wel.hide();
		elInput.value&nbsp;=&nbsp;wel.text();	
		elInput.focus();
		
		this._bIsEditing&nbsp;=&nbsp;true;
		if&nbsp;(this.option(&quot;bHandleBlur&quot;))&nbsp;{
			this._wfBlur.attach(elInput,&nbsp;&quot;blur&quot;);
		}
		if&nbsp;(this.option(&quot;bHandleKeyDown&quot;))&nbsp;{
			this._wfKeyDown.attach(elInput,&nbsp;&quot;keydown&quot;);
		}
		return&nbsp;this;
	},
	
	/**
		수정중인&nbsp;내용을&nbsp;적용한다.
		
		@method&nbsp;apply
		@return&nbsp;{this}
	**/
	apply&nbsp;:&nbsp;function()&nbsp;{
		if&nbsp;(this.isEditing())&nbsp;{
			var&nbsp;welInput&nbsp;=&nbsp;this._getTextInput(),
				elInput&nbsp;=&nbsp;welInput.$value(),
				sText&nbsp;=&nbsp;elInput.value,
				htCustomEvent&nbsp;=&nbsp;{
					sText&nbsp;:&nbsp;sText,
					elInput&nbsp;:&nbsp;elInput,
					elText&nbsp;:&nbsp;this._welHidden.$value()
				};
			
			/**
				수정이&nbsp;성공적으로&nbsp;완료되고&nbsp;수정된&nbsp;값이&nbsp;적용되기&nbsp;전
				
				@event&nbsp;beforeChange
				@param&nbsp;{String}&nbsp;sType&nbsp;커스텀&nbsp;이벤트명
				@param&nbsp;{String}&nbsp;sText&nbsp;수정될&nbsp;값,&nbsp;핸들러내에서&nbsp;변경가능
				@param&nbsp;{HTMLElement}&nbsp;elInput&nbsp;수정을&nbsp;위해&nbsp;표시된&nbsp;Input&nbsp;엘리먼트
				@param&nbsp;{HTMLElement}&nbsp;elText&nbsp;수정될&nbsp;엘리먼트
				@param&nbsp;{Function}&nbsp;stop&nbsp;수행시&nbsp;elText의&nbsp;값이&nbsp;변경되지&nbsp;않고&nbsp;change&nbsp;커스텀&nbsp;이벤트가&nbsp;발생하지&nbsp;않음
				@example
					//&nbsp;커스텀&nbsp;이벤트&nbsp;핸들링&nbsp;예제
					oInlineTextEdit.attach(&quot;beforeChange&quot;,&nbsp;function(oCustomEvent)&nbsp;{&nbsp;...&nbsp;});
			**/
			if&nbsp;(this._welHidden.text()&nbsp;!=&nbsp;sText&nbsp;&amp;&amp;&nbsp;this.fireEvent(&quot;beforeChange&quot;,&nbsp;htCustomEvent))&nbsp;{
				this._welHidden.text(htCustomEvent.sText).show();
				this._bIsEditing&nbsp;=&nbsp;false;
				/**
					수정된&nbsp;값이&nbsp;적용된&nbsp;이후
					
					@event&nbsp;change
					@param&nbsp;{String}&nbsp;sType&nbsp;커스텀&nbsp;이벤트명
					@param&nbsp;{String}&nbsp;sText&nbsp;수정된&nbsp;값,&nbsp;핸들러내에서&nbsp;변경가능
					@param&nbsp;{HTMLElement}&nbsp;elInput&nbsp;수정을&nbsp;위해&nbsp;표시된&nbsp;Input&nbsp;엘리먼트
					@param&nbsp;{HTMLElement}&nbsp;elText&nbsp;수정된&nbsp;엘리먼트
					@example
						//&nbsp;커스텀&nbsp;이벤트&nbsp;핸들링&nbsp;예제
						oInlineTextEdit.attach(&quot;change&quot;,&nbsp;function(oCustomEvent)&nbsp;{&nbsp;...&nbsp;});
				**/
				this.fireEvent(&quot;change&quot;,&nbsp;htCustomEvent);
			}&nbsp;else&nbsp;{
				this._welHidden.show();
			}
			this._wfBlur.detach(elInput,&nbsp;&quot;blur&quot;).detach(elInput,&nbsp;&quot;keydown&quot;);
			welInput.leave();
		}
		
		return&nbsp;this;
	},
	
	/**
		수정중인&nbsp;내용을&nbsp;취소한다.
		
		@method&nbsp;cancel
		@return&nbsp;{this}
	**/
	cancel&nbsp;:&nbsp;function()&nbsp;{
		if&nbsp;(this.isEditing())&nbsp;{
			var&nbsp;welInput&nbsp;=&nbsp;this._getTextInput(),&nbsp;elInput&nbsp;=&nbsp;welInput.$value();
			
			this._welHidden.show();
			this._bIsEditing&nbsp;=&nbsp;false;
			this._wfBlur.detach(elInput,&nbsp;&quot;blur&quot;).detach(elInput,&nbsp;&quot;keydown&quot;);
			welInput.leave();
		}
		
		return&nbsp;this;
	},
	
	_onBlur&nbsp;:&nbsp;function(we)&nbsp;{
		this.apply();
	},&nbsp;
	
	_onKeyDown&nbsp;:&nbsp;function(we)&nbsp;{
		switch&nbsp;(we.key().keyCode)&nbsp;{
			case&nbsp;27&nbsp;:&nbsp;
				this.cancel();
			break;
			case&nbsp;13&nbsp;:
				if&nbsp;(this.getTextInput().tagName.toLowerCase()&nbsp;==&nbsp;&quot;input&quot;)&nbsp;{
					this.apply();
				}&nbsp;
			break;
		}
	}
}).extend(jindo.Component);
</pre>
		</div>
	</div>
</div>

			</div>
		</div>
		<!-- // main content -->

	</div>
	<!-- // container -->

	<!-- footer -->
	<div id="footer">
		<p>Copyright ©<a href="http://nhncorp.com/" target="_blank">NHN Corp.</a> Platform Ajax Team. All Rights Reserved.</p>
	</div>
	<!-- // footer -->

</div>
<!-- // wrap -->

<style type="text/css">

	.item {
		transition:background .2s linear;
		-webkit-transition:background .2s linear;
		-moz-transition:background .2s linear;
		-o-transition:background .2s linear;
		-ms-transition:background .2s linear;
	}
	
	.highlight {
		background-color:#ffffd8 !important;
	}
	
	li.selected a.highlight {
		background-color:#aa8 !important;
	}
	
	.hide-deprecated .deprecated-item, .hide-inherited .inherited-item, .private {
		display:none;
	}
	
	.scrollbar-v, .scrollbar-h { display:none; }
	.scrollbar-show { display:block; }
	
	.api-page .tbl_fold .more_history { display:none; }
	
	/* FILE */
	.file pre.code {
		border:1px solid #ccc;
		padding:0;
	}
	
	.file ol {
		padding-left: 4em;
		background-color: #f9f9f9;
	}

	.file ol li {
		list-style: decimal;
		border-left:1px solid #ccc;
		padding:2px 4px;
	}
	
	.file li.L1, .file li.L3, .file li.L5, .file li.L7, .file li.L9 {
		background-color: #f9f9f9;	
	}

	.file li.L0, .file li.L2, .file li.L4, .file li.L6, .file li.L8 { 
		background-color: #f0f0f0;
	}
	
</style>
<script type="text/javascript" src="../assets/prettify/prettify-min.js"></script>
<script type="text/javascript" src="../assets/hash.js"></script>
<script type="text/javascript" src="../assets/api-list.js"></script>
<script type="text/javascript" src="../assets/api-search.js"></script>
<script type="text/javascript" src="../assets/../api.js?callback=APISearch.setData"></script>
<script type="text/javascript">
	var projectRoot = "../";
	var projectAssets = "../assets";
	
    apiDocs(projectAssets);	
</script>
</body>
</html>